package com.wangjn;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.aop.AfterReturningAdvice;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;

/**
 * Created by Administrator on 2017/5/11.
 */
@Component
public class AdviceTest implements AfterReturningAdvice{
    private static final Logger logger = LoggerFactory.getLogger(AdviceTest.class);
    @Override
    public void afterReturning(Object o, Method method, Object[] objects, Object o1) throws Throwable {
        logger.info("使用advisor配置的AOP！");
    }
}
